package com.fzkj.shejimoshi.obverse;

import java.util.HashMap;
import java.util.Map;

public class Test {
    public static void main(String[] args) {
        Obverse1 on1= new Obverse1();
        Obvserse2 ob2= new Obvserse2();
        Publisher p = new Publisher();

        p.add(on1);
        p.add(ob2);

        Map<String, Object> map = new HashMap<>();
        map.put("title","每日考研动态");
        map.put("msg","考研加油");


        p.notify1(map);

        p.remove(on1);

        p.notifyObv("移除");

    }
}
